from django.db import models

# Create your models here.

class Area(models.Model):
    IS_ACTIVE = [
        (0, '无效'),
        (1, '有效')
    ]
    area_name = models.CharField(max_length=225, verbose_name='赛区名称', help_text='赛区名称')
    is_active = models.IntegerField(choices=IS_ACTIVE,default=1,help_text='是否有效',verbose_name='是否有效')

    class Meta:
        verbose_name = "赛区"
        verbose_name_plural = verbose_name
        ordering = ['-id']

    def __str__(self):
        return self.area_name
